\documentclass{article}
\usepackage{longtable}
\title {sed}
\date{}
\begin{document}
\maketitle


\begin{center}
{\renewcommand{\arraystretch}{2}
\renewcommand{\tabcolsep}{0.26666666cm}
\begin{longtable}{lp{.7\linewidth}}{\bfseries}
&\\
sed Commands&\\
&\\
\verb|a\| &	appends one or more lines of text to the current line\\
c &	changes text in the current line with new text\\
d &	deletes lines\\
\verb|i\| &	inserts text above the current line\\
h &	copies the contents of the pattern space to a holding buffer\\
H &	appends the contents of the pattern space to a holding buffer\\
g &	gets what is in the holding buffer and copies into the pattern buffer, overwriting what was there\\
G &	gets what is in the holding buffer and copies into the pattern buffer, appending to what was there\\
l &	lists nonprinting characters\\
p &	prints lines\\
n &	reads the next input line and starts processing the new line with the next command rather than the first command\\
q &	quits or exits\\
r &	reads line from a file\\
\verb|!| &	applies the command to all lines except the selected ones\\
&\\
Substitution Flags&\\
&\\
s &	substitutes one string for another\\
g &	global substitution on one line\\
p &	prints line\\
w &	writes lines to a file\\
x &	exchanges contents of the holding buffer with the pattern space\\
y &	translates one character to another\\

&\\
Options&\\
&\\
\verb|-e| &	allows multiple edits\\
\verb|-n| &	suppresses default output\\
\verb|-f| &	reads a sed script file\\
\end{longtable}}
\footnote[1]{parts of this table of definitions stolen from www.cs.mcgill.ca/~jwang90/Reference}
\end{center}
\end{document}
